/**
 * Created by three on 14-11-7.
 */
'use strict';

describe("Controller: LangController", function () {

    // 加载模块
    beforeEach(module('myApp'));

    var LangController, scope;

    // init controller and a mock scope
    beforeEach(inject(function ($controller, $rootScope) {
        scope = $rootScope.$new();
        LangController = $controller('LangController', {
            $scope: scope
        })
    }));

    // exec test
    it("should language a list of languages to the scope", function () {
        expect(scope.languages.length).toBe(2);
    });

});